package com.demo.utils;

import java.util.UUID;

/**
 * Create with Intellij idea
 * User:鲁智明
 * Date:2018/10/9
 * Time:20:56
 */
public class test {
    public static void main(String[] args) {
        int i=1;
        Integer i1=new Integer(1);
        Integer i2=new Integer(1);
        String s1="AAAAA";
        String s2="AAAAA";
        String s3=new String("AAAAA");
        String s4=new String("AAAAA");
        System.out.println(s1==s2);
        System.out.println(s1.equals(s2));
        System.out.println(i1==i2);
        System.out.println(i1.equals(i2));
        System.out.println(s1==s4);
        System.out.println(s1.equals(s3));
        System.out.println(UUID.randomUUID().toString());
    }
}
